package prototype.deep;

/**
 * @author Feng
 * @date 2019/3/11 23:10
 */
public class DeepCloneTest {
    public static void main(String[] args) {
        QiTianDasheng qiTianDasheng = new QiTianDasheng();
        try{
            QiTianDasheng clone = (QiTianDasheng) qiTianDasheng.deepClone();
            System.out.println(qiTianDasheng.jinGuBang == clone.jinGuBang);
        }
        catch (Exception e){
            e.printStackTrace();
        }

        QiTianDasheng qiTianDasheng1 = new QiTianDasheng();
        QiTianDasheng qiTianDasheng2 = qiTianDasheng1.shallowClone(qiTianDasheng1);
        System.out.println(qiTianDasheng1.jinGuBang == qiTianDasheng2.jinGuBang);
    }
}
